<tem>
	
<div class="template" id="cert_div">
    <form class="bs-example form-horizontal xs-form" id="connect_tpl" style="width:60%">
        <div class="form-group" id="cert_config_chk_div">
            <label class="col-lg-3 control-label">是否启用</label>
            <div class="col-lg-8 tl">
              <input type="checkbox" data-type="checkbox" data-name="open" txt="启用">
            </div>
        </div>

        <div class="prel" data-name="cert_type_div">
          <div class="form-group">
              <label class="col-lg-3 control-label">配置类型</label>
              <div class="col-lg-8">
                  <div class="checkbox dn mr5" txt="SSH2"><label class="i-checks"><input type="radio" name="cert_type" value="SSH2"><i></i>SSH2</label></div>
                  <div class="checkbox dn mr5" txt="TELNET"><label class="i-checks"><input type="radio" name="cert_type" value="TELNET"><i></i>TELNET</label></div>
                  <div class="checkbox dn mr5" txt="SNMP"><label class="i-checks"><input type="radio" name="cert_type" value="SNMP"><i></i>SNMP</label></div>
                  <div class="checkbox dn mr5" txt="WMI"><label class="i-checks"><input type="radio" name="cert_type" value="WMI"><i></i>WMI</label></div>
              </div>
          </div>

          <div data-target="SSH2" style="display:none">
              <div class="form-group">
                <label class="col-lg-3 control-label required">用户名</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" data-id="monitorUserName" validate="required" />
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-3 control-label required">密码</label>
                <div class="col-lg-6">
                  <input type="password" class="form-control input-sm" data-id="monitorPassWord" validate="required" />
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-3 control-label required">端口</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" data-id="monitorPort" value="22" validate="required,port" />
                </div>
              </div> 
          </div>

          <div data-target="TELNET" style="display:none">
              <div class="form-group">
                <label class="col-lg-3 control-label required">用户名</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" data-id="monitorUserName" validate="required" />
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-3 control-label required">密码</label>
                <div class="col-lg-6">
                  <input type="password" class="form-control input-sm" data-id="monitorPassWord" validate="required" />
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-3 control-label required">端口</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" data-id="monitorPort" value="23" validate="required,port" />
                </div>
              </div> 
              <div class="form-group">
                <label class="col-lg-3 control-label required">命令提示符</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" data-id="commandPrompt" validate="required" />
                </div>
              </div> 
              <div class="form-group">
                <label class="col-lg-3 control-label">登录提示符</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" data-id="loginPrompt" />
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-3 control-label">密码提示符</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" data-id="passwordPrompt" />
                </div>
              </div>
          </div>

          <div data-target="SNMP" style="display:none">
              <div class="form-group" style="display:none">
                  <label class="col-lg-3 control-label pt0">SNMP模板:</label>
                  <div class="col-lg-6">
                    <select class="form-control input-sm clrss" data-type="select" data-id="snmpName">
                    </select> 
                  </div>
              </div>

              <div class="form-group">
                  <label class="col-lg-3 control-label pt0">SNMP版本:</label>
                  <div class="col-lg-6">
                    <select class="form-control input-sm clrss" data-type="select" data-id="snmpVersion">
                        <option value="1">SNMP V1</option>
                        <option value="2">SNMP V2c</option>
                        <option value="3">SNMP V3</option>
                    </select> 
                  </div>
              </div>

              <div data-getter="v1">
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0 required">端口</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="snmpPort" validate="required,port" value="161"/>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0 required">读团体字</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="snmpCommunity" value="public" validate="required"/>
                    </div>
                  </div>
              </div>

              <div data-getter="v2" class="dn">
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0 required">端口</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="snmpPort" validate="required,port" value="161"/>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0 required">读团体字</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="snmpCommunity" value="public" validate="required"/>
                    </div>
                  </div>
              </div>

              <div data-getter="v3" class="dn">
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0 required">端口</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="snmpPort" validate="required,port" value="161"/>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0 required">用户名</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" maxlength="32" data-id="snmpUserName" validate="required,stringLimit1"/>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0">安全级别</label>
                    <div class="col-lg-6">
                      <select class="form-control input-sm clrss" data-id="securityLevel" data-type="select">
                        <option value="-1">---</option>
                        <option value="1">NOAUTH_NOPRIV</option>
                        <option value="2">AUTH_NOPRIV</option>
                        <option value="3">AUTH_PRIV</option>
                      </select>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0">认证方式</label>
                    <div class="col-lg-6">
                      <select class="form-control input-sm clrss" data-id="authWay" data-type="select">
                        <option value="-1">---</option>
                        <option value="1">SHA</option>
                        <option value="2">MD5</option>
                      </select>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0">认证口令</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="authPwd" />
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0">加密方式</label>
                    <div class="col-lg-6">
                      <select class="form-control input-sm clrss" data-id="encryptionWay" data-type="select">
                        <option value="-1">---</option>
                        <option value="1">3DES</option>
                        <option value="2">AES128</option>
                        <option value="3">AES192</option>
                        <option value="4">AES256</option>
                        <option value="5">DES</option>
                      </select>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0">加密口令</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="encryptionPwd" />
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0">Context ID</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="context"/>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-lg-3 control-label pt0">Context Name</label>
                    <div class="col-lg-6">
                      <input type="text" class="form-control input-sm" data-id="contextName"/>
                    </div>
                  </div>
              </div>
          </div>

          <div data-target="WMI" style="display:none">
              <div class="form-group">
                <label class="col-lg-3 control-label required">用户名</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" value="Administrator" maxlength="32" data-id="monitorUserName" validate="required">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-3 control-label required">密码</label>
                <div class="col-lg-6">
                  <input type="password" class="form-control input-sm" data-id="monitorPassWord" validate="required">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-3 control-label required">端口</label>
                <div class="col-lg-6">
                  <input type="text" class="form-control input-sm" data-id="monitorPort" maxlength="5" validate="required,between1~65535" value="135">
                </div>
              </div>
          </div>

          <div class="form-group">
            <label class="col-lg-9 control-label pt0">&nbsp;</label>
            <div class="col-lg-3 prel" style="top:-45px">
              <a href="javascript:void(0);" class="dib monitor_btn_styl" id="cert_test_btn">
                  <span>测试</span>
              </a>
            </div>
          </div>
        </div>
    </form>	
</div>

</tem>